package cn.nkjobsearch.config;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ConfigJob51 {
	/**
	 * 51Job 通过[职位分类][省市代码]和[翻页页码]进行遍历，采集Id
	 * 
	 * 51Job 省份的编码（共34个省份和直辖市）
	 */
	public final static String[] JOB51_PROVINCE = { "1500", "3400", "0100",
			"1100", "2700", "0300", "1400", "2600", "1000", "1600", "1700",
			"2200", "1800", "1900", "2400", "0700", "1300", "2300", "2800",
			"2900", "3200", "1200", "2100", "2000", "0200", "0900", "3500",
			"0500", "3000", "3300", "3100", "2500", "0800", "0600" };

	/**
	 * 51Job 职位分类及其编码 55个
	 */
	public final static String[] JOB51_CATEGORY = { "2400", "0100", "2500",
			"2600", "2700", "2800", "2900", "0200", "3000", "3100", "3200",
			"0400", "3300", "2200", "3400", "3500", "3600", "0500", "5400",
			"3700", "3800", "3900", "4000", "0800", "4100", "5500", "1300",
			"4200", "4300", "0300", "4400", "4500", "0900", "2100", "4600",
			"4700", "0600", "0700", "2300", "1400", "1100", "1200", "1000",
			"4800", "4900", "5000", "5100", "1800", "5200", "1500", "2000",
			"1600", "1700", "5300", "1900" };

	public final static String[] JOB51_CATEGORY_CN = { "计算机硬件类", "计算机软件类",
			"互联网开发及应用类", "IT-管理类", "IT-品管、技术支持及其它类", "通信技术类",
			"电子/电器/半导体/仪器仪表类", "销售管理类", "销售人员类", "销售行政及商务类", "客服及技术支持类",
			"财务/审计/税务类", "证券/金融/投资类", "银行类", "保险类", "生产/营运类", "质量/安全管理类",
			"工程/机械/能源类", "汽车类", "技工类", "服装/纺织/皮革类", "采购类", "贸易类", "物流/仓储类",
			"生物/制药/医疗器械类", "化工类", "医院/医疗/护理类", "广告类", "公关/媒介类", "市场/营销类",
			"影视/媒体类", "写作/出版/印刷类", "艺术/设计类", "建筑工程类", "房地产类", "物业管理类", "人力资源类",
			"高级管理类", "行政/后勤类", "咨询/顾问类", "律师/法务类", "教师类", "科研人员类", "餐饮/娱乐类",
			"酒店/旅游类", "美容/健身类", "百货/连锁/零售服务类", "交通运输服务类", "保安/家政/其他服务类",
			"公务员类", "翻译类", "在校学生类", "储备干部/培训生/实习生类", "兼职类", "其他类" };

	/**
	 * 51Job 设置翻页页码 翻页的上限
	 */
	public final static int JOB51_SEARCHLIST_MAX_PAGE = 10;

	/**
	 * 51Job 判断对某一个省市的翻页是否结束
	 */
	public static boolean JOB51_SEARCHLIST_IS_PAGE_OVER = false;

	/**
	 * 51Job 一个51job搜索页面的url地址（通过post提交搜索请求）
	 */
	public final static String JOB51_SEARCHLIST_ACTION_URL = "http://search.51job.com/jobsearch/keyword_search.php";

	/**
	 * 51Job 一个51job高级搜索页面的url地址（通过post提交搜索请求）
	 */
	public final static String STR_51JOB_ADVANCE = "http://search.51job.com/jobsearch/search_result.php";

	/**
	 * 51Job 一个51job详细信息页面的url地址（后面加上括号和id）
	 */
	public final static String JOB51_CONTENT_DETAIL_URL = "http://search.51job.com/jobsearch/show_job_detail.php?id=";

	/**
	 * 遍历51Job搜索接口时的Log文件的路径
	 */
	public final static String JOB51_SEARCHLIST_LOG_PATH = "log/Job51SearchListLog_"
			+ (new SimpleDateFormat("yyyy-MM-dd")).format(new Date()) + ".log";

	public final static String JOB51_SEARCHLIST_CONF_PATH = "conf/Job51_PC.conf";

	public static boolean JOB51_SEARCHLIST_RUNNING = true;

	public static int JOB51_SEARCHLIST_TIMER = 0;

	public final static int JOB51_SEARCHLIST_DELAY_SECONDS = 10;

	public static boolean JOB51_CONTENT_RUNNING = true;

	public static int JOB51_CONTENT_TIMER = 0;

	public final static int JOB51_CONTENT_DELAY_SECONDS = 10;

	public final static int JOB51_SEARCHLIST_ID_NUM_EACH_PAGE = 30;

	public static int JOB51_SEARCHLIST_P = 0;

	public static int JOB51_SEARCHLIST_C = 0;
}
